package com.cskaoyan.mall.model.po;

import lombok.Data;

/**
 * @ClassName: Admin
 * @Description: TODO
 * @Auther 庄左
 * @Date 2022/6/28 17:12
 * @Version
 **/


public class Admin {
    private Integer id;
    private String username;
    private String password;
    private String nickname;

    @Override
    public String toString() {
        return "Admin{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }

    public Admin() {
    }

    public Admin(String username, String password, String nickname) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
    }

    public Admin(Integer id, String username,String password,String nickname) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
    }

    public Admin(String nickname, String password) {
        this.nickname=nickname;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
